from core.basic.skill import 技能
from core.basic.character import Character
from core.basic.skill import 主动技能, 被动技能


class 技能0(主动技能):
    名称 = "双重投射"
    所在等级 = 15
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 6
    MP = [30, 219]
    无色消耗 = 0
    data0 = [0, 1682, 1852, 2021, 2193, 2364, 2533, 2705, 2876, 3044, 3216, 3387, 3557, 3727, 3898, 4069, 4239, 4408, 4580, 4750, 4922, 5091, 5261, 5432, 5603, 5774, 5944, 6114, 6286, 6454, 6625, 6797, 6967, 7138, 7309, 7478, 7650,
             7819, 7989, 8161, 8332, 8502, 8673, 8844, 9012, 9183, 9354, 9525, 9695, 9867, 10036, 10206, 10377, 10547, 10719, 10890, 11059, 11231, 11400, 11570, 11741, 11911, 12083, 12254, 12422, 12594, 12765, 12934, 13105, 13276, 13447]
    hit0 = 2
    TP成长 = 0.1
    TP上限 = 7


class 技能1(主动技能):
    名称 = "侵蚀之矛"
    所在等级 = 15
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 5
    MP = [30, 219]
    无色消耗 = 0
    data0 = [0, 3307, 3643, 3980, 4314, 4650, 4986, 5322, 5656, 5991, 6327, 6662, 6997, 7334, 7669, 8004, 8341, 8676, 9010, 9348, 9683, 10017, 10353, 10689, 11023, 11360, 11696, 12032, 12366, 12702, 13039, 13373, 13708, 14045, 14379, 14714, 15052,
             15387, 15721, 16058, 16393, 16726, 17062, 17399, 17735, 18069, 18405, 18741, 19076, 19412, 19748, 20082, 20417, 20754, 21090, 21425, 21761, 22096, 22431, 22768, 23103, 23438, 23774, 24110, 24445, 24780, 25117, 25452, 25786, 26123, 26458]
    hit0 = 1
    TP成长 = 0.1
    TP上限 = 7


class 技能2(被动技能):
    名称 = '暗蚀'
    所在等级 = 15
    等级上限 = 20
    基础等级 = 10
    关联技能 = ['所有']
    关联技能1 = ['双重投射', '暗矛投射', '暗矛贯穿', '绝望枪', '暗蚀螺旋枪', '连锁侵蚀',
             '坠蚀之雨', '暗蚀爆雷杀', '黑蚀酷刑', '冥夜裂空', '虚空碎灭']
    关联技能2 = ["暗·渊灭禁绝", "冥蚀脉冲", "幽影暗蚀：寂灭", "无尽侵蚀：缚魂", "黑蚀葬礼"]

    def 加成倍率(self, 武器类型):
        if self.等级 == 0:
            return 1.0
        else:
            return round(1.07 + 0.01 * self.等级, 5)

    def 加成倍率1(self, 武器类型):
        return 1.2

    # 部分加成 不享受加成部分在技能中需要设置倍率
    def 加成倍率2(self, 武器类型):
        return 1.2


class 技能3(主动技能):
    名称 = "暗矛投射"
    所在等级 = 20
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 7
    MP = [36, 262]
    无色消耗 = 0
    data0 = [0, 1057, 1165, 1269, 1377, 1485, 1592, 1698, 1806, 1914, 2021, 2128, 2236, 2343, 2450, 2556, 2664, 2771, 2879, 2985, 3092, 3199, 3306, 3414, 3521, 3629, 3735, 3842, 3949, 4057, 4164, 4271, 4379, 4486, 4593,
             4700, 4807, 4915, 5021, 5127, 5235, 5341, 5449, 5557, 5665, 5771, 5878, 5986, 6093, 6200, 6308, 6416, 6521, 6627, 6735, 6842, 6950, 7057, 7165, 7272, 7378, 7486, 7593, 7701, 7807, 7915, 8022, 8129, 8235, 8342, 8450]
    hit0 = 4
    TP成长 = 0.1
    TP上限 = 7


class 技能4(被动技能):
    名称 = '暗矛精通'
    所在等级 = 20
    等级上限 = 30
    基础等级 = 20

    def 魔法攻击力倍率(self, 武器类型):
        if self.等级 == 0:
            return 1.0
        elif self.等级 <= 20:
            return round(1 + 0.01 * self.等级, 5)
        else:
            return round(0.8 + 0.02 * self.等级, 5)


class 技能5(主动技能):
    名称 = "黑暗枪雨"
    所在等级 = 25
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 12
    MP = [78, 708]
    无色消耗 = 0
    data0 = [0, 1044, 1151, 1257, 1363, 1469, 1574, 1681, 1786, 1892, 1999, 2104, 2210, 2317, 2421, 2528, 2635, 2740, 2846, 2952, 3058, 3164, 3270, 3376, 3482, 3587, 3694, 3799, 3905, 4012, 4118, 4223, 4331, 4436, 4542,
             4649, 4754, 4860, 4966, 5072, 5178, 5283, 5390, 5496, 5601, 5708, 5814, 5919, 6026, 6132, 6237, 6344, 6449, 6555, 6662, 6767, 6873, 6979, 7085, 7192, 7296, 7403, 7510, 7614, 7721, 7828, 7932, 8039, 8144, 8250, 8358]
    hit0 = 8
    TP成长 = 0.1
    TP上限 = 7


class 技能6(主动技能):
    名称 = "暗矛贯穿"
    所在等级 = 25
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 8
    MP = [35, 350]
    无色消耗 = 0
    data0 = [0, 2053, 2261, 2469, 2677, 2886, 3093, 3303, 3510, 3718, 3925, 4135, 4342, 4551, 4757, 4967, 5175, 5383, 5591, 5800, 6007, 6214, 6425, 6632, 6841, 7048, 7256, 7465, 7673, 7881, 8090, 8297, 8505, 8713, 8923, 9130, 9338, 9545,
             9755, 9962, 10171, 10378, 10588, 10796, 11004, 11212, 11421, 11629, 11836, 12044, 12253, 12461, 12670, 12876, 13086, 13293, 13502, 13709, 13919, 14125, 14334, 14541, 14751, 14959, 15168, 15375, 15584, 15792, 16000, 16208, 16416]
    hit0 = 1
    data1 = [0, 3062, 3373, 3686, 3996, 4307, 4617, 4928, 5238, 5549, 5861, 6172, 6482, 6793, 7104, 7415, 7724, 8036, 8347, 8659, 8968, 9278, 9590, 9902, 10212, 10521, 10833, 11143, 11454, 11765, 12077, 12387, 12698, 13008, 13320, 13629, 13940,
             14252, 14564, 14873, 15184, 15494, 15806, 16117, 16427, 16737, 17047, 17360, 17669, 17980, 18291, 18603, 18913, 19223, 19533, 19845, 20156, 20468, 20777, 21089, 21399, 21710, 22019, 22331, 22643, 22954, 23264, 23574, 23885, 24195, 24507]
    hit1 = 1
    TP成长 = 0.1
    TP上限 = 7


class 技能7(主动技能):
    名称 = "黑蚀葬礼"
    所在等级 = 30
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 10
    MP = [72, 650]
    无色消耗 = 0
    data0 = [0, 2783, 3066, 3347, 3630, 3914, 4195, 4478, 4759, 5042, 5326, 5606, 5889, 6171, 6453, 6737, 7019, 7301, 7584, 7866, 8149, 8431, 8714, 8995, 9277, 9558, 9841, 10124, 10406, 10688, 10972, 11254, 11536, 11818, 12099, 12383, 12666,
             12947, 13230, 13513, 13795, 14078, 14359, 14642, 14924, 15205, 15489, 15771, 16053, 16336, 16619, 16901, 17184, 17466, 17747, 18029, 18312, 18594, 18876, 19158, 19442, 19724, 20006, 20288, 20571, 20854, 21135, 21418, 21699, 21982, 22266]
    hit0 = 1
    data1 = [0, 4175, 4598, 5023, 5445, 5869, 6292, 6717, 7139, 7565, 7986, 8411, 8834, 9257, 9681, 10103, 10528, 10951, 11375, 11797, 12221, 12645, 13068, 13493, 13916, 14340, 14763, 15185, 15611, 16032, 16457, 16880, 17305, 17727, 18149, 18574,
             18997, 19422, 19844, 20270, 20691, 21115, 21539, 21963, 22386, 22809, 23233, 23657, 24080, 24504, 24927, 25350, 25774, 26198, 26621, 27043, 27468, 27891, 28316, 28739, 29163, 29586, 30009, 30432, 30857, 31279, 31703, 32127, 32550, 32974, 33397]
    hit1 = 1
    TP成长 = 0.1
    TP上限 = 7

    power0 = 1/1.2  # 非黑雷系


class 技能8(主动技能):
    名称 = "绝望枪"
    所在等级 = 30
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 8
    MP = [71, 745]
    无色消耗 = 0
    data0 = [0, 703, 776, 847, 919, 991, 1060, 1133, 1204, 1276, 1348, 1420, 1489, 1562, 1632, 1705, 1777, 1848, 1919, 1991, 2061, 2134, 2205, 2275, 2348, 2418, 2490, 2562, 2634, 2704, 2776, 2847, 2919, 2990, 3063, 3133,
             3205, 3276, 3347, 3419, 3492, 3561, 3633, 3706, 3775, 3848, 3918, 3991, 4062, 4134, 4205, 4277, 4347, 4420, 4490, 4563, 4634, 4705, 4776, 4849, 4919, 4991, 5062, 5132, 5205, 5276, 5348, 5420, 5491, 5561, 5633]
    hit0 = 15
    TP成长 = 0.1
    TP上限 = 7

    # 三觉被动 增加了hit数 减少了单次伤害
    power0 = 0.72


class 技能9(被动技能):
    名称 = '暗枪突破'
    所在等级 = 30
    等级上限 = 11
    基础等级 = 1

    关联技能 = ['所有']

    def 加成倍率(self, 武器类型):
        if self.等级 == 0:
            return 1.0
        else:
            return round(1.09 + 0.01 * self.等级, 5)


class 技能10(主动技能):
    名称 = "连锁侵蚀"
    所在等级 = 35
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 20
    MP = [194, 1600]
    无色消耗 = 1
    data0 = [0, 4243, 4672, 5103, 5533, 5963, 6394, 6825, 7256, 7683, 8113, 8544, 8975, 9406, 9836, 10266, 10696, 11126, 11556, 11987, 12418, 12849, 13279, 13707, 14138, 14569, 15000, 15430, 15860, 16291, 16720, 17150, 17581, 18012, 18443, 18873,
             19303, 19732, 20163, 20594, 21025, 21454, 21885, 22315, 22745, 23175, 23606, 24037, 24467, 24898, 25327, 25757, 26188, 26619, 27049, 27479, 27909, 28340, 28769, 29200, 29631, 30061, 30492, 30921, 31352, 31782, 32213, 32643, 33072, 33502, 33933]
    hit0 = 1
    data1 = [0, 1061, 1169, 1277, 1384, 1492, 1600, 1707, 1815, 1923, 2027, 2136, 2244, 2352, 2458, 2567, 2675, 2781, 2890, 2998, 3106, 3211, 3321, 3429, 3534, 3643, 3751, 3859, 3964, 4073, 4181, 4287, 4396, 4504, 4612,
             4718, 4827, 4933, 5040, 5148, 5256, 5364, 5471, 5579, 5687, 5793, 5901, 6009, 6117, 6223, 6331, 6439, 6546, 6654, 6762, 6870, 6977, 7085, 7193, 7300, 7408, 7516, 7624, 7729, 7837, 7945, 8052, 8160, 8268, 8375, 8483]
    hit1 = 6
    TP成长 = 0.1
    TP上限 = 5


class 技能11(主动技能):
    名称 = "暗蚀螺旋枪"
    所在等级 = 35
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 18
    MP = [185, 1526]
    无色消耗 = 1
    data0 = [0, 370, 409, 445, 482, 521, 557, 595, 636, 671, 710, 748, 784, 822, 859, 897, 934, 972, 1009, 1047, 1084, 1122, 1160, 1197, 1234, 1274, 1310, 1348, 1386, 1423, 1460, 1499, 1535, 1573, 1610, 1648, 1685,
             1723, 1760, 1798, 1835, 1873, 1912, 1949, 1986, 2025, 2061, 2099, 2137, 2174, 2211, 2250, 2286, 2323, 2361, 2398, 2436, 2473, 2512, 2549, 2587, 2624, 2663, 2699, 2737, 2775, 2812, 2849, 2889, 2924, 2962]
    hit0 = 20
    data1 = [0, 4337, 4778, 5218, 5658, 6098, 6537, 6977, 7418, 7858, 8299, 8739, 9177, 9618, 10057, 10498, 10939, 11378, 11817, 12257, 12697, 13138, 13578, 14019, 14456, 14897, 15337, 15777, 16219, 16659, 17099, 17537, 17978, 18417, 18859, 19298,
             19739, 20179, 20617, 21057, 21498, 21938, 22379, 22818, 23258, 23697, 24138, 24579, 25018, 25459, 25898, 26339, 26778, 27219, 27658, 28099, 28537, 28979, 29419, 29858, 30298, 30739, 31177, 31619, 32059, 32499, 32939, 33378, 33819, 34258, 34699]
    hit1 = 1
    TP成长 = 0.1
    TP上限 = 5

    是否有护石 = 1

    def 装备护石(self, char):
        self.倍率 *= 1.34


class 技能12(主动技能):
    名称 = "坠蚀之雨"
    所在等级 = 40
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 22
    MP = [200, 1650]
    无色消耗 = 1
    data0 = [0, 708, 780, 852, 925, 997, 1070, 1141, 1212, 1283, 1356, 1427, 1500, 1572, 1643, 1715, 1787, 1859, 1931, 2002, 2075, 2145, 2218, 2289, 2362, 2434, 2507, 2578, 2649, 2722, 2793, 2865, 2937, 3009, 3080, 3152,
             3224, 3296, 3368, 3441, 3510, 3583, 3654, 3727, 3798, 3871, 3944, 4015, 4087, 4159, 4231, 4302, 4374, 4446, 4517, 4590, 4661, 4734, 4805, 4878, 4949, 5021, 5092, 5164, 5236, 5308, 5379, 5453, 5524, 5597, 5668]
    hit0 = 20
    TP成长 = 0.1
    TP上限 = 5

    是否有护石 = 1

    def 装备护石(self, char):
        self.hit0 += 2+3.6
        self.倍率 = 1.09


class 技能13(主动技能):
    名称 = "暗蚀爆雷杀"
    所在等级 = 45
    等级上限 = 70
    学习间隔 = 2
    等级精通 = 60
    CD = 40
    MP = [350, 3080]
    无色消耗 = 2
    data0 = [0, 9142, 10068, 10996, 11925, 12852, 13779, 14707, 15632, 16561, 17489, 18415, 19343, 20270, 21198, 22126, 23051, 23980, 24908, 25835, 26763, 27690, 28617, 29544, 30472, 31399, 32326, 33253, 34181, 35109, 36035, 36964, 37891, 38819, 39746,
             40674, 41601, 42527, 43456, 44382, 45310, 46238, 47164, 48093, 49022, 49947, 50875, 51801, 52730, 53658, 54584, 55512, 56438, 57366, 58294, 59221, 60148, 61075, 62005, 62931, 63858, 64786, 65712, 66641, 67568, 68495, 69422, 70348, 71277, 72205, 73131]
    hit0 = 1
    data1 = [0, 6440, 7093, 7749, 8401, 9054, 9708, 10361, 11014, 11669, 12320, 12974, 13628, 14280, 14933, 15589, 16241, 16894, 17549, 18201, 18854, 19507, 20161, 20814, 21467, 22121, 22774, 23428, 24082, 24735, 25388, 26042, 26694, 27348, 28002, 28654,
             29307, 29962, 30615, 31268, 31923, 32575, 33228, 33882, 34535, 35188, 35842, 36494, 37148, 37802, 38456, 39108, 39763, 40416, 41068, 41724, 42376, 43028, 43682, 44336, 44988, 45641, 46296, 46949, 47602, 48256, 48908, 49561, 50216, 50868, 51521]
    hit1 = 1
    data2 = [0, 9797, 10792, 11785, 12779, 13773, 14768, 15761, 16754, 17749, 18743, 19736, 20731, 21724, 22719, 23712, 24706, 25699, 26694, 27689, 28682, 29675, 30668, 31665, 32658, 33650, 34644, 35640, 36634, 37627, 38621, 39616, 40609, 41603, 42597,
             43591, 44584, 45578, 46573, 47566, 48560, 49554, 50548, 51541, 52537, 53530, 54523, 55517, 56512, 57505, 58498, 59491, 60488, 61481, 62474, 63468, 64461, 65458, 66451, 67445, 68438, 69432, 70427, 71420, 72413, 73408, 74402, 75396, 76389, 77384, 78377]
    hit2 = 1
    TP成长 = 0.1
    TP上限 = 5

    是否有护石 = 1

    def 装备护石(self, char):
        self.倍率 *= 1.32
        self.CDR *= 0.9


class 技能14(被动技能):
    名称 = '黑暗支配者'
    所在等级 = 48
    等级上限 = 50
    学习间隔 = 3
    等级精通 = 40

    关联技能 = ['所有']

    def 加成倍率(self, 武器类型):
        if self.等级 == 0:
            return 1.0
        else:
            return round(1.105 + 0.015 * self.等级, 5)


class 技能15(主动技能):
    名称 = "无尽侵蚀：缚魂"
    所在等级 = 50
    等级上限 = 50
    学习间隔 = 5
    等级精通 = 40
    CD = 145
    MP = [1200, 10080]
    无色消耗 = 5
    data0 = [0, 2328, 2869, 3410, 3949, 4488, 5029, 5569, 6108, 6648, 7189, 7729, 8268, 8808, 9349, 9888, 10427, 10968, 11508, 12048, 12587, 13128, 13668, 14208, 14748, 15289,
             15827, 16367, 16909, 17446, 17987, 18528, 19068, 19606, 20148, 20687, 21227, 21766, 22306, 22847, 23386, 23927, 24466, 25007, 25547, 26086, 26626, 27167, 27706, 28247, 28787]
    hit0 = 15
    data1 = [0, 4270, 5258, 6248, 7239, 8229, 9219, 10207, 11198, 12188, 13178, 14167, 15160, 16149, 17139, 18128, 19119, 20109, 21098, 22087, 23078, 24068, 25058, 26046, 27037, 28027,
             29017, 30007, 30998, 31987, 32977, 33967, 34957, 35947, 36936, 37926, 38916, 39906, 40896, 41886, 42875, 43865, 44855, 45845, 46837, 47825, 48815, 49805, 50796, 51785, 52775]
    hit1 = 10

    power0 = 1/1.2  # 非黑雷系


class 技能16(主动技能):
    名称 = "暗影蚀魂"
    所在等级 = 60
    等级上限 = 50
    学习间隔 = 2
    等级精通 = 40
    CD = 30
    MP = [400, 1120]
    无色消耗 = 2
    data0 = [0, 27025, 29768, 32509, 35252, 37992, 40734, 43476, 46218, 48960, 51700, 54443, 57185, 59926, 62668, 65411, 68151, 70893, 73635, 76377, 79118, 81860, 84602, 87344, 90086, 92827, 95570,
             98310, 101052, 103793, 106536, 109277, 112018, 114760, 117503, 120245, 122986, 125729, 128469, 131211, 133953, 136695, 139436, 142178, 144919, 147662, 150403, 153145, 155886, 158628, 161369]
    hit0 = 1
    TP成长 = 0.1
    TP上限 = 5

    是否有护石 = 1

    def 装备护石(self, char):
        self.倍率 *= 1.36


class 技能17(主动技能):
    名称 = "黑蚀酷刑"
    所在等级 = 70
    等级上限 = 50
    学习间隔 = 2
    等级精通 = 40
    CD = 45
    MP = [800, 1650]
    无色消耗 = 2
    data0 = [0, 8435, 9290, 10146, 11001, 11858, 12714, 13569, 14424, 15280, 16136, 16992, 17847, 18703, 19557, 20415, 21270, 22126, 22980, 23836, 24692, 25547, 26404, 27259, 28114,
             28971, 29826, 30681, 31538, 32394, 33249, 34105, 34959, 35816, 36673, 37528, 38382, 39239, 40093, 40951, 41805, 42661, 43516, 44371, 45229, 46084, 46939, 47795, 48650, 49505, 50363]
    hit0 = 1
    data1 = [0, 2109, 2322, 2537, 2751, 2964, 3179, 3393, 3606, 3820, 4033, 4248, 4462, 4675, 4891, 5103, 5318, 5533, 5745, 5959, 6173, 6387, 6601, 6815, 7030, 7243,
             7457, 7670, 7885, 8098, 8313, 8527, 8739, 8955, 9168, 9382, 9597, 9809, 10024, 10238, 10451, 10666, 10879, 11094, 11307, 11521, 11735, 11949, 12162, 12378, 12591]
    hit1 = 10
    data2 = [0, 11859, 13062, 14266, 15468, 16672, 17874, 19078, 20282, 21486, 22686, 23890, 25093, 26297, 27499, 28703, 29904, 31108, 32313, 33514, 34718, 35921, 37124, 38328, 39532,
             40733, 41936, 43139, 44344, 45545, 46749, 47952, 49154, 50358, 51562, 52763, 53967, 55171, 56374, 57578, 58779, 59983, 61185, 62390, 63593, 64795, 65998, 67201, 68404, 69608, 70810]
    hit2 = 1
    TP成长 = 0.1
    TP上限 = 5

    是否有护石 = 1

    def 装备护石(self, char):
        self.hit1 = 0
        self.倍率 *= 2.58
        self.CDR *= 0.9


class 技能18(主动技能):
    名称 = "冥夜裂空"
    所在等级 = 75
    等级上限 = 50
    学习间隔 = 2
    等级精通 = 40
    CD = 40
    MP = [580, 4500]
    无色消耗 = 3
    data0 = [0, 3360, 3700, 4042, 4382, 4723, 5062, 5404, 5745, 6085, 6427, 6767, 7108, 7448, 7790, 8131, 8470, 8812, 9152, 9493, 9835, 10175, 10516, 10856, 11198, 11537, 11878,
             12220, 12560, 12901, 13242, 13583, 13924, 14263, 14605, 14945, 15286, 15627, 15968, 16309, 16650, 16991, 17329, 17670, 18013, 18352, 18693, 19034, 19375, 19715, 20057]
    hit0 = 20

    是否有护石 = 1

    def 装备护石(self, char):
        self.倍率 *= 1.34


class 技能19(被动技能):
    名称 = '黑暗本源'
    所在等级 = 75
    等级上限 = 50
    学习间隔 = 3
    等级精通 = 40

    关联技能 = ['所有']

    def 加成倍率(self, 武器类型):
        if self.等级 == 0:
            return 1.0
        else:
            return round(1.22 + 0.02 * self.等级, 5)


class 技能20(主动技能):
    名称 = "冥蚀脉冲"
    所在等级 = 80
    等级上限 = 50
    学习间隔 = 2
    等级精通 = 40
    CD = 45
    MP = [800, 6000]
    无色消耗 = 5
    data0 = [0, 7691, 8469, 9250, 10030, 10809, 11589, 12369, 13151, 13931, 14709, 15490, 16270, 17051, 17830, 18609, 19390, 20172, 20951, 21731, 22510, 23291, 24071, 24851, 25631,
             26410, 27190, 27971, 28752, 29532, 30310, 31091, 31871, 32650, 33432, 34211, 34991, 35772, 36551, 37332, 38112, 38892, 39672, 40450, 41232, 42012, 42793, 43572, 44352, 45133, 45913]
    hit0 = 1
    data1 = [0, 4038, 4446, 4856, 5265, 5676, 6085, 6495, 6903, 7314, 7723, 8132, 8543, 8952, 9361, 9771, 10179, 10590, 10998, 11410, 11818, 12228, 12637, 13046, 13456, 13866,
             14275, 14686, 15093, 15504, 15914, 16322, 16733, 17143, 17551, 17962, 18370, 18780, 19189, 19600, 20009, 20419, 20828, 21237, 21646, 22056, 22466, 22876, 23284, 23695, 24104]
    hit1 = 8
    data2 = [0, 36908, 40653, 44396, 48141, 51885, 55629, 59373, 63118, 66862, 70607, 74350, 78095, 81839, 85583, 89327, 93072, 96815, 100559, 104306, 108050, 111794, 115539, 119282, 123028, 126771,
             130514, 134260, 138003, 141748, 145492, 149236, 152980, 156725, 160469, 164213, 167958, 171702, 175445, 179191, 182934, 186678, 190423, 194166, 197911, 201655, 205399, 209143, 212888, 216633, 220378]
    hit2 = 1

    power0 = 1/1.2  # 非黑雷系

    是否有护石 = 1

    def 装备护石(self, char):
        self.倍率 *= 1.32
        self.CDR *= 0.9


class 技能21(主动技能):
    名称 = "幽影暗蚀：寂灭"
    所在等级 = 85
    等级上限 = 50
    学习间隔 = 5
    等级精通 = 40
    CD = 180
    MP = [2500, 5000]
    无色消耗 = 10
    data0 = [0, 7934, 9774, 11614, 13455, 15294, 17134, 18973, 20813, 22654, 24493, 26333, 28173, 30013, 31853, 33693, 35533, 37373, 39212, 41051, 42892, 44732, 46571, 48411, 50251,
             52092, 53932, 55771, 57611, 59451, 61292, 63130, 64970, 66809, 68649, 70489, 72329, 74169, 76009, 77848, 79689, 81529, 83369, 85208, 87047, 88888, 90728, 92568, 94407, 96247, 98088]
    hit0 = 1
    data1 = [0, 150753, 185711, 220667, 255624, 290580, 325537, 360495, 395451, 430408, 465366, 500324, 535280, 570237, 605194, 640151, 675107, 710066, 745022, 779980, 814937, 849894, 884851, 919807, 954766, 989722, 1024679,
             1059636, 1094594, 1129550, 1164506, 1199463, 1234420, 1269378, 1304335, 1339292, 1374249, 1409206, 1444163, 1479120, 1514076, 1549034, 1583992, 1618948, 1653906, 1688863, 1723820, 1758776, 1793735, 1828691, 1863648]
    hit1 = 1

    power0 = 1/1.2  # 非黑雷系


class 技能22(主动技能):
    名称 = "虚空碎灭"
    所在等级 = 95
    等级上限 = 50
    学习间隔 = 2
    等级精通 = 40
    CD = 60
    MP = [960, 9600]
    无色消耗 = 7
    data0 = [0, 44572, 49095, 53617, 58140, 62660, 67182, 71705, 76226, 80748, 85271, 89793, 94315, 98835, 103357, 107879, 112402, 116925, 121447, 125967, 130490, 135011, 139532, 144055, 148576, 153098,
             157621, 162143, 166666, 171187, 175707, 180230, 184752, 189274, 193796, 198319, 202840, 207361, 211883, 216406, 220927, 225449, 229971, 234492, 239014, 243537, 248059, 252581, 257102, 261625, 266146]
    hit0 = 1
    data1 = [0, 1273, 1403, 1533, 1662, 1791, 1920, 2050, 2179, 2306, 2436, 2565, 2694, 2824, 2954, 3082, 3213, 3342, 3472, 3600, 3729, 3858, 3986, 4116, 4245,
             4375, 4503, 4633, 4762, 4890, 5020, 5150, 5281, 5407, 5538, 5667, 5796, 5925, 6055, 6184, 6312, 6442, 6571, 6700, 6829, 6958, 7087, 7217, 7346, 7476, 7604]
    hit1 = 20
    data2 = [0, 57309, 63122, 68937, 74751, 80564, 86377, 92193, 98006, 103819, 109634, 115446, 121260, 127074, 132888, 138702, 144516, 150331, 156145, 161958, 167771, 173586, 179400, 185213, 191027, 196841,
             202655, 208469, 214283, 220096, 225910, 231724, 237539, 243353, 249166, 254980, 260795, 266608, 272421, 278236, 284050, 289863, 295677, 301491, 307304, 313117, 318933, 324745, 330559, 336372, 342189]
    hit2 = 1


class 技能23(被动技能):
    名称 = '暗源之蚀'
    所在等级 = 95
    等级上限 = 50
    学习间隔 = 3
    等级精通 = 40

    关联技能 = ['所有']

    def 加成倍率(self, 武器类型):
        if self.等级 == 0:
            return 1.0
        else:
            return round(1.18 + 0.02 * self.等级, 5)


class 技能24(主动技能):
    名称 = "暗·渊灭禁绝"
    所在等级 = 100
    等级上限 = 50
    学习间隔 = 5
    等级精通 = 40
    CD = 290
    MP = [4028, 8056]
    无色消耗 = 15
    data0 = [0, 16031, 19750, 23468, 27183, 30902, 34619, 38337, 42055, 45772, 49490, 53206, 56924, 60640, 64358, 68076, 71793, 75511, 79229, 82946, 86663, 90382, 94100, 97815, 101534, 105249, 108968,
             112686, 116403, 120121, 123838, 127556, 131272, 134990, 138709, 142425, 146143, 149861, 153578, 157294, 161013, 164729, 168446, 172165, 175881, 179600, 183318, 187034, 190753, 194470, 198189]
    hit0 = 12
    data1 = [0, 36070, 44436, 52800, 61165, 69527, 77893, 86256, 94621, 102986, 111349, 119714, 128080, 136443, 144806, 153170, 161536, 169900, 178263, 186629, 194992, 203357, 211720, 220085, 228450, 236814,
             245178, 253541, 261906, 270272, 278635, 287000, 295363, 303728, 312091, 320456, 328821, 337185, 345548, 353913, 362278, 370642, 379007, 387371, 395735, 404098, 412463, 420827, 429192, 437557, 445921]
    hit1 = 8

    power0 = 1/1.2  # 非黑雷系


class classChange(Character):
    def __init__(self, equVersion=""):
        self.实际名称 = 'impaler'
        self.名称 = '千魂·暗枪士'
        self.角色 = '魔枪士'
        self.角色类型 = '输出'
        self.职业 = '暗枪士'
        self.武器选项 = ['暗矛']
        self.输出类型选项 = ['魔法百分比']
        self.防具精通属性 = ['智力']
        self.类型 = '魔法百分比'
        self.武器类型 = '暗矛'
        self.防具类型 = '皮甲'
        技能列表 = []
        技能序号 = {}
        i = 0
        while i >= 0:
            try:
                tem = eval('技能'+str(i)+'()')
                tem.基础等级计算()
                技能序号[tem.名称] = i
                技能列表.append(tem)
                i += 1
            except:
                i = -1
        self.技能栏 = 技能列表
        self.技能序号 = 技能序号
        self.buff = 1.93

        super().__init__(equVersion)
